class CreateWashrooms < ActiveRecord::Migration
  def change
    create_table :washrooms do |t|
      t.string :name
      t.string :address
      t.string :description
      t.decimal :postion_x, precision: 20, scale: 17
      t.decimal :postion_y, precision: 20, scale: 17
      t.integer :founder_id
      t.string :logo_url

      t.timestamps null: false
    end

    add_index :washrooms, :founder_id
  end
end
